global using Devonline.AspNetCore;
global using Devonline.Core;
global using static Devonline.Core.AppSettings;
using Devonline.Identity.Gateway;

var builder = WebApplication.CreateBuilder(args);
var appSetting = builder.AddSetting<GatewaySetting>();
builder.AddServiceDefaults();
builder.AddGatewayServices(appSetting);

var app = builder.Build();
app.MapDefaultEndpoints();
app.UseDefaultBuilder(appSetting);
app.MapReverseProxy();
app.Run();